package com.iims.flowable.flow.vo.request;

import com.iims.flowable.flow.vo.CcToVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

/**
 * @author fanpei
 * @date 2021/6/27 21:57
 */
@ApiModel("任务完成请求")
@Data
public class TaskCompleteRequest {

    @ApiModelProperty(value = "任务Id", required = true)
    @NotBlank(message = "任务Id不能为空")
    private String taskId;

    @ApiModelProperty(value = "流程提交表单数据")
    private SubmitTaskFormVo taskForm;

    @ApiModelProperty(value = "处理意见内容", required = true)
    @NotBlank(message = "处理意见内容不能为空")
    private String message;

    @ApiModelProperty(value = "抄送者")
    private CcToVo[] ccToVos;

    @ApiModelProperty(value = "流程变量,json字符串")
    private Map<String, Object> variables;
}
